package s47.dqj.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

import s47.dqj.bean.DoctorMethodDetail;

public interface DoctorMethodDetailDaoInf {

	@Resource(name = "sessionFactory")
	public abstract void setSupperSessionFactory(SessionFactory sessionFactory);

	/**
	 * 通过处方编号查找
	 * @param doctorMethodDetail
	 * @return
	 */
	public abstract List<DoctorMethodDetail> findAllByDmid(
			DoctorMethodDetail doctorMethodDetail);

	/**
	 * 通过药品基本信息编号查找
	 * @param doctorMethodDetail
	 * @return
	 */
	public abstract List<DoctorMethodDetail> findAllByMiid(
			DoctorMethodDetail doctorMethodDetail);

	/**
	 * 新增
	 * @param doctorMethodDetail
	 */
	public abstract void save(DoctorMethodDetail doctorMethodDetail);

	/**
	 * 修改
	 * @param doctorMethodDetail
	 */
	public abstract void update(DoctorMethodDetail doctorMethodDetail);

	/**
	 * 删除
	 * @param doctorMethodDetail
	 */
	public abstract void delete(DoctorMethodDetail doctorMethodDetail);

	/**
	 * 根据id查找单个
	 * @param doctorMethodDetail
	 * @return
	 */
	public abstract DoctorMethodDetail findObject(
			DoctorMethodDetail doctorMethodDetail);

}